﻿using FwProject.Comm.ExcelUtil;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace FwProject.PrePaymentInfo.Dto
{
    [DisplayName(displayName: "客户往来流水账")]
    public class RunningAccountDto
    {
        /// <summary>
        /// 餐厅名称
        /// </summary>
        public Guid RestaurantId { get; set; }

        [DisplayName(displayName: "餐厅")]
        [ExcelDateMember]
        public string RestaurantName { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        [DisplayName(displayName: "单据类型")]
        [ExcelDateMember]
        public BillTypeEnum BillType { get; set; }
        /// <summary>
        /// 单据编号
        /// </summary>
        [DisplayName(displayName: "单据编号")]
        [ExcelDateMember]
        public string BillNumber { get; set; }
        /// <summary>
        /// 单据日期
        /// </summary>
        [DisplayName(displayName: "单据日期")]
        [ExcelDateMember]
        public DateTime BillDate { get; set; }
        /// <summary>
        /// 结算账户
        /// </summary>
        public Guid AccountId { get; set; }
        [DisplayName(displayName: "结算账户")]
        [ExcelDateMember]
        public string AccountName { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        [DisplayName(displayName: "金额")]
        [ExcelDateMember]
        public decimal Amount { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [DisplayName(displayName: "备注")]
        [ExcelDateMember]
        public string RemarkContent { get; set; }
    }

    public enum BillTypeEnum
    {
        收据=0,
        收款单=1,
        收押金=2,
        退押金=3,
        预收款单=4,
        退还预收款=5,
        装车单=6
    }
}
